import request from '@/utils/request'

export function getIndustryInfoList(data) {
  console.log('++++++++++++', data)
  return request({
    url: 'industry/list',
    method: 'post',
    params: data
  })
}

export function getIndustryInfo(id) {
  return request({
    url: 'industry/get',
    method: 'post',
    params: { id }
  })
}

export function addIndustryInfo(data) {
  return request({
    url: 'industry/add',
    method: 'post',
    data
  })
}

export function editIndustryInfo(data) {
  return request({
    url: 'industry/edit',
    method: 'post',
    data
  })
}

export function editIndustryInfoStatus(id, status) {
  return request({
    url: 'industry/edit_status',
    method: 'post',
    params: { id, status }
  })
}
